Auto merge of #3789 - vojtechkral:cargo_env, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 8 Mar 2017 00:00:34 +0000 (00:00 +0000)
committerbors <bors@rust-lang.org>
Wed, 8 Mar 2017 00:00:34 +0000 (00:00 +0000)
commit08069531d7f8d375b4b946151badfb8f70890aa3
tree1d0c0b1f48ed3e170a7a1c34a702eddbfee11b2f
parent1389b33772b6f7e414ddb44485292e3a286527a2
parent015a08a0c41a319d09445ea382274700258fe80a
Auto merge of #3789 - vojtechkral:cargo_env, r=alexcrichton

Tell subprocesses the path to self in an env variable #3778

I'm just setting the env var on the process itself, letting subprocesses inherit that, as it's easier than setting for each subprocess individually. I'm not entirely sure this is the right spot though.

Also, I should probably document this somewhere - what would be the best place?
src/cargo/lib.rs
tests/cargotest/lib.rs
tests/init.rs